﻿using System.Data;
using Model = Tauren.Business.Entity.Model;

namespace Tauren.Business.DLL.LogIn
{
    public interface ILogInBusiness
    {
        /// <summary>
        /// 根据账号和密码获取用户信息
        /// </summary>
        /// <param name="Account"></param>
        /// <param name="Password"></param>
        /// <returns></returns>
        Model.AccoutInfo GetAccoutInfo(string Account);
        /// <summary>
        /// 根据账号和密码获取用户信息
        /// </summary>
        /// <param name="Account"></param>
        /// <param name="Password"></param>
        /// <returns></returns>
        Model.Employee GetEmployeeInfo(int EmpId);
        /// <summary>
        /// 判断当前用户角色
        /// </summary>
        /// <param name="EmpId"></param>
        /// <param name="dbConnection"></param>
        /// <returns></returns>
        bool IsCurrentRoleByAdmin(int EmpId);

        /// <summary>
        /// 获取组织名称
        /// </summary>
        /// <param name="Account"></param>
        /// <param name="Password"></param>
        /// <returns></returns>
        Model.Organization GetOrganizationInfo(int OrgID);

        /// <summary>
        /// 获取组织名称
        /// </summary>
        /// <param name="Account"></param>
        /// <param name="Password"></param>
        /// <returns></returns>
        Model.Position GetPositionInfo(int PostionId);
    }
}
